package com.sgq.vue.dao.system;

import com.sgq.vue.entity.system.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author SGQ
 * @since 2023-10-30
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {


    List<Permission> selectPermissionListByUserId(Long userId);

    /**
     * 根据角色ID查询权限列表
     * @param roleId
     * @return
     */
    List<Permission> selectPermissionListByRoleId(Long roleId);

}
